/* 个人档案模态框样式 */
.companion-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 可点击头像样式 */
.clickable-avatar {
  cursor: pointer;
  border: 3px solid #ff9ab1;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 155, 177, 0.3);
  background-color: white;
  overflow: hidden;
}

.clickable-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 155, 177, 0.4);
  border-color: #ff6b9c;
}

/* 穿搭按钮样式 */
.outfit-header-button {
  color: white !important;
  padding: 4px 8px !important;
  transition: all 0.3s ease;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.outfit-header-button:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* 覆盖层 */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  animation: fadeIn 0.2s ease-in-out;
}

/* 模态框内容 */
.profile-modal-content {
  background: #fff6f9;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 155, 177, 0.3);
  animation: slideIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  margin: auto;
}

/* 整体容器 */
.companion-profile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff6f9;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 聊天容器样式 */
.chat-container {
  max-width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
  overflow: hidden;
  position: relative;
  font-size: 13px;
}

/* 聊天头部 */
.chat-header {
  height: 48px;
  padding: 6px 10px;
  background: linear-gradient(to right, #ff7eb3, #ff4e95);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #ff4e95;
  flex-shrink: 0;
  border-radius: 10px;
}

.chat-header-left {
  display: flex;
  align-items: center;
}

.back-button {
  font-size: 18px;
  margin-right: 15px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s;
  color: white;
}

.back-button:hover {
  opacity: 0.8;
}

.chat-title {
  font-size: 14px;
  font-weight: bold;
  margin-left: 8px;
}

.chat-header-right {
  display: flex;
  align-items: center;
}

/* 修改头部按钮样式 */
.outfit-header-button {
  color: white !important;
  margin-left: 5px;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  height: auto !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.outfit-header-button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* 子头部样式 - 包含头像和心情 */
.chat-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #fff4f8;
  border-bottom: 1px solid rgba(255, 150, 180, 0.2);
}

.subheader-left {
  display: flex;
  align-items: center;
}

.companion-header-avatar {
  border: 2px solid #ff9ab1 !important;
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.2) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px !important;
  height: 40px !important;
  background-color: white !important;
}

.companion-header-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3) !important;
}

.subheader-info {
  margin-left: 12px;
}

.subheader-name {
  font-size: 14px;
  font-weight: 600;
  color: #ff3b7c;
}

.subheader-style {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.mood-indicator {
  background: linear-gradient(to right, #ff9ab1, #ff7eb3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(255, 105, 180, 0.2);
}

/* 消息列表 */
.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  background-color: #f7f7f7;
}

.message-list::-webkit-scrollbar {
  width: 6px;
}

.message-list::-webkit-scrollbar-track {
  background: rgba(255, 150, 180, 0.05);
}

.message-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 150, 180, 0.3);
  border-radius: 3px;
}

/* 修复聊天消息样式 */
.chat-message {
  display: flex;
  margin-bottom: 16px;
  align-items: flex-start;
  max-width: 85%;
  gap: 10px;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.companion-message {
  align-self: flex-start;
}

.avatar {
  flex-shrink: 0;
}

.message-content {
  background-color: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  max-width: 100%;
  word-wrap: break-word;
}

.user-message .message-content {
  background-color: #ff9ab1;
  color: white;
  box-shadow: 0 2px 6px rgba(255, 154, 177, 0.2);
  border-top-right-radius: 4px;
}

.companion-message .message-content {
  background-color: white;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.message-content p {
  font-size: 13px;
  line-height: 1.4;
}

/* 消息图片容器样式 */
.message-image {
  margin-top: 10px;
  max-width: 100%;
  position: relative;
}

.message-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.message-image img:hover {
  transform: scale(1.02);
}

/* 头像容器 */
.avatar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 8px;
}

/* 消息头像 */
.message-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff9ab1 !important;
  box-shadow: 0 2px 6px rgba(255, 105, 180, 0.15) !important;
  flex-shrink: 0;
  background-color: white !important;
}

.message-avatar.user-avatar {
  border-color: #9ab1ff !important;
  box-shadow: 0 2px 6px rgba(105, 145, 255, 0.15) !important;
}

.clickable-avatar {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-avatar:hover {
  transform: scale(1.05);
}

/* 消息气泡 */
.message-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.companion-bubble {
  background: linear-gradient(to bottom right, #ffffff, #fff0f5);
  color: #333;
  margin-right: 12px;
  border-top-left-radius: 2px;
  border: 1px solid rgba(255, 150, 180, 0.2);
}

.companion-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #ffffff;
  z-index: 1;
}

.companion-bubble::after {
  content: '';
  position: absolute;
  left: -9px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(255, 150, 180, 0.2);
  z-index: 0;
}

.user-bubble {
  background: linear-gradient(to bottom left, #ff7eb3, #ff5b99);
  color: white;
  margin-left: 12px;
  border-top-right-radius: 2px;
}

.user-bubble::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #ff5b99;
}

/* 表情选择器 */
.emoji-picker {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: calc(100% - 30px);
  max-width: 400px;
  z-index: 100;
  padding: 0;
  overflow: hidden;
}

.emoji-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff6fa;
  font-size: 16px;
  font-weight: 500;
  color: #ff3b7c;
}

.emoji-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 150, 180, 0.1);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  color: #ff3b7c;
}

.emoji-close:hover {
  background: rgba(255, 150, 180, 0.2);
}

.emoji-list {
  display: flex;
  flex-wrap: wrap;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  justify-content: space-around;
}

.emoji-item {
  font-size: 20px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  margin: 2px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: #fff0f5;
  transform: scale(1.2);
}

/* 输入框区域样式优化 */
.input-container {
  padding: 8px 10px;
  background-color: white;
  border-top: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.input-area-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 18px;
  padding: 2px;
  border: 1px solid #eaeaea;
  flex-wrap: nowrap;
}

.chat-input-container {
  flex: 1;
  margin: 0 4px;
}

.chat-input {
  width: 100%;
  border: none;
  background-color: transparent;
  padding: 8px;
  outline: none;
  font-size: 13px;
  color: #333;
}

/* 更新底部工具栏按钮样式 */
.tool-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tool-button:hover {
  background: #ffebf1;
}

.tool-icon {
  font-size: 16px;
  color: #ff6b8b;
}

/* 发送按钮样式优化 */
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(to right, #ff7eb3, #ff5b99);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  margin-left: 4px;
  box-shadow: 0 2px 4px rgba(255, 107, 155, 0.3);
  flex-shrink: 0;
}

/* 爱心按钮特殊样式 */
.heart-button {
  color: #ff3b7c;
}

.heart-icon {
  color: #ff3b7c;
  font-size: 17px;
}

/* 亲密互动菜单样式完善 */
.intimate-actions-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  z-index: 500;
  padding: 20px 16px 40px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-sizing: border-box;
}

.intimate-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.intimate-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background: #fff7f9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.intimate-action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.15);
}

.intimate-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.intimate-action-item span {
  font-size: 14px;
  color: #333;
}

/* 今日穿搭按钮优化 */
.today-outfit-button {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #ff9ab1, #ff7eb3);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
  cursor: pointer;
  z-index: 50;
  transition: all 0.2s;
}

.today-outfit-button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.outfit-icon {
  margin-right: 5px;
  font-size: 14px;
}

/* 输入框样式优化 */
.chat-input {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 10px;
  font-size: 13px;
  color: #333;
  outline: none;
  border-radius: 20px;
  transition: all 0.2s;
  width: 100%;
  height: 36px;
}

.chat-input:focus {
  background-color: #f9f9f9;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
  .intimate-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .intimate-action-item {
    padding: 12px 5px;
  }
  
  .intimate-icon {
    font-size: 22px;
  }
}

/* 顶部标题栏 */
.profile-header {
  background: linear-gradient(to right, #ff6b9c, #ff7eb3);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.profile-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 标签页样式 */
.profile-tabs {
  display: flex;
  background-color: #ffebf1;
  border-bottom: 1px solid rgba(255, 150, 180, 0.3);
}

.profile-tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.profile-tab.active {
  color: #ff3b7c;
  font-weight: 600;
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: #ff3b7c;
  border-radius: 3px 3px 0 0;
  animation: slideWidth 0.3s ease-in-out;
}

/* 风格选择器 */
.style-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.style-button {
  padding: 8px 15px;
  border-radius: 20px;
  background-color: #ffebf1;
  color: #ff3b7c;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 150, 180, 0.1);
  text-align: center;
}

.style-button.active {
  background: linear-gradient(to right, #ff7eb3, #ff5b99);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 117, 140, 0.3);
  border-color: transparent;
}

.style-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.2);
}

.style-description {
  padding: 10px;
  background-color: #fff0f5;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid rgba(255, 150, 180, 0.1);
}

.style-description p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 个人资料内容区域 */
.profile-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #fff6f9;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9ab1' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  scrollbar-width: thin;
}

.profile-content::-webkit-scrollbar {
  width: 6px;
}

.profile-content::-webkit-scrollbar-track {
  background: rgba(255, 150, 180, 0.05);
}

.profile-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 150, 180, 0.3);
  border-radius: 3px;
}

/* 头像部分 */
.profile-avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  padding-top: 5px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff9ab1;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
  aspect-ratio: 1/1;
  animation: fadeIn 0.5s ease-in-out;
}

/* 信息卡片 */
.profile-info-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(255, 155, 177, 0.15);
  border: 1px solid rgba(255, 150, 180, 0.1);
  animation: slideUp 0.3s ease-in-out;
  animation-fill-mode: both;
}

.profile-info-card:nth-child(1) {
  animation-delay: 0.1s;
}

.profile-info-card:nth-child(2) {
  animation-delay: 0.2s;
}

.profile-info-card:nth-child(3) {
  animation-delay: 0.3s;
}

.profile-info-header {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: #ff3b7c;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 10px;
}

.profile-info-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, #ff7eb3, #ff5b99);
  border-radius: 2px;
}

/* 基本信息条目 */
.profile-info-item {
  display: flex;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
  align-items: center;
  padding: 3px 0;
}

.profile-info-label {
  min-width: 60px;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}

.profile-info-value {
  color: #333;
  flex: 1;
  padding-left: 8px;
}

/* 性格风格选择器 */
.personality-selector {
  display: flex;
  margin-top: 15px;
  align-items: flex-start;
}

.personality-selector .profile-info-label {
  margin-bottom: 0;
  padding-top: 6px;
}

.profile-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-left: 8px;
}

.personality-option {
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #ffebf1;
  color: #ff3b7c;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 150, 180, 0.1);
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
}

.personality-option.active {
  background: linear-gradient(to right, #ff7eb3, #ff5b99);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 117, 140, 0.3);
  border-color: transparent;
}

.personality-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.2);
}

/* 标签样式 */
.profile-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: #ffebf1;
  color: #ff3b7c;
  border-radius: 12px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 150, 180, 0.1);
  transition: all 0.2s ease;
}

.profile-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.2);
}

/* 个性标签 */
.profile-personality {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.personality-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: #ffebf1;
  color: #ff3b7c;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid rgba(255, 150, 180, 0.1);
  transition: all 0.2s ease;
}

.personality-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.2);
}

/* 个人介绍 */
.profile-description {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* 穿搭展示区域 */
.outfit-display {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background-color: #fff6f9;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9ab1' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  scrollbar-width: thin;
}

.outfit-display::-webkit-scrollbar {
  width: 6px;
}

.outfit-display::-webkit-scrollbar-track {
  background: rgba(255, 150, 180, 0.05);
}

.outfit-display::-webkit-scrollbar-thumb {
  background-color: rgba(255, 150, 180, 0.3);
  border-radius: 3px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #ff7eb3;
  font-size: 16px;
}

.error {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #ff3b7c;
  font-size: 16px;
}

.outfit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  animation: fadeIn 0.5s ease-in-out;
}

.outfit-image {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  border: 1px solid rgba(255, 150, 180, 0.2);
  transition: all 0.3s ease;
}

.outfit-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.2);
}

.outfit-description {
  font-size: 16px;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  border: 1px solid rgba(255, 150, 180, 0.1);
}

.generate-button {
  background: linear-gradient(to right, #ff7eb3, #ff5b99);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
  transition: all 0.3s ease;
  margin-top: 10px;
  width: 80%;
  max-width: 300px;
  font-weight: 500;
}

.generate-button:hover {
  box-shadow: 0 6px 10px rgba(255, 105, 180, 0.3);
  transform: translateY(-2px);
}

.generate-button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* 动画效果 */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideWidth {
  from { width: 0; left: 50%; }
  to { width: 50%; left: 25%; }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .profile-modal-content {
    width: 95%;
    max-height: 85vh;
    margin: 0 auto;
  }
  
  .style-selector {
    padding: 10px 8px;
    gap: 6px;
  }
  
  .style-button {
    padding: 6px 10px;
    font-size: 13px;
    margin-bottom: 5px;
}

.outfit-description {
  font-size: 14px;
    padding: 10px;
  }
  
  .generate-button {
    width: 90%;
    padding: 10px 15px;
  }
  
  .profile-avatar {
    width: 90px;
    height: 90px;
  }

  .profile-info-card {
  padding: 12px;
    margin-bottom: 12px;
  }
  
  .profile-tabs {
    padding: 0;
  }
  
  .profile-tab {
    padding: 12px 0;
    font-size: 15px;
  }
  
  .profile-content,
  .outfit-display {
    padding: 10px;
  }
  
  .personality-option {
    padding: 5px 10px;
    font-size: 13px;
  }
  
  .profile-style-options {
    padding-left: 0;
  }
  
  .profile-info-item {
    flex-direction: row;
  align-items: center;
    margin-bottom: 14px;
  }
  
  .profile-info-label {
    margin-bottom: 0;
    font-weight: 600;
    min-width: 60px;
  }
  
  .personality-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .personality-selector .profile-info-label {
    margin-bottom: 8px;
  }
  
  .profile-header h2 {
    font-size: 16px;
  }
}

/* 穿搭工具按钮 */
.chat-tools {
  display: none;
}

/* 底部菜单按钮样式 */
.bottom-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  margin: 0 10px;
  background: linear-gradient(to right, #ff9ab1, #ff7eb3);
  color: white;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(255, 107, 155, 0.2);
  border: none;
  min-width: 110px;
  text-align: center;
}

.bottom-menu-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 155, 0.3);
}

.bottom-menu-button .icon {
  margin-right: 8px;
  font-size: 18px;
}

/* 加载状态 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* 新增的今日穿搭按钮样式 */
.today-outfit-button {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #ff9ab1, #ff7eb3);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
  cursor: pointer;
  z-index: 50;
  transition: all 0.2s;
}

.today-outfit-button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.outfit-icon {
  margin-right: 5px;
  font-size: 14px;
}

/* 图片上传按钮样式 */
.tool-label {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-upload-button {
  display: none;
}

.quick-actions-menu {
  display: none;
}

.quick-action-item {
  display: none;
}

.quick-actions-menu {
  position: absolute;
  bottom: 80px;
  left: 15px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: calc(100% - 30px);
  max-width: 400px;
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 4px;
  border-radius: 12px;
  background: #fff6fa;
  flex: 1;
  min-width: 70px;
  max-width: 90px;
}

.quick-action-item:hover {
  background: #ffdbec;
}

.action-icon {
  font-size: 18px;
  margin-bottom: 5px;
}

.action-text {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 发送按钮 */
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(to right, #ff7eb3, #ff5b99);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(255, 107, 155, 0.3);
}

.send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 107, 155, 0.4);
}

/* 生气遮罩 */
.anger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.anger-emoji {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  object-fit: contain;
  animation: shake 0.5s ease-in-out;
}

.anger-message {
  color: white;
  font-size: 16px;
  text-align: center;
  max-width: 80%;
  line-height: 1.5;
}

/* 图片预览容器 */
.image-preview-container {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 150, 180, 0.2);
}

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 16px;
  object-fit: contain;
}

.image-preview-actions {
  display: flex;
  gap: 10px;
}

/* 加载页面 */
.loading-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #ffeef3, #fff6f9);
}

/* 辅助功能 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* 移动适配 */
@media (max-width: 768px) {
  .message-bubble {
    padding: 8px 12px;
    max-width: 80%;
    font-size: 13px;
  }
  
  .emoji-picker {
    left: 10px;
    width: calc(100% - 20px);
    bottom: 65px;
    transform: none;
  }
  
  .send-button {
    width: 30px;
    height: 30px;
    margin-left: 4px;
  }
  
  .chat-title {
    font-size: 14px;
  }
  
  .input-container {
    padding: 6px 8px;
  }
  
  .input-area-wrapper {
    flex-wrap: nowrap;
    padding: 0 4px;
  }
  
  .message-list {
    padding: 8px;
  }
}

/* 风格选择下拉框样式 */
.style-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.style-dropdown-selected {
  padding: 8px 15px;
  border-radius: 20px;
  background: linear-gradient(to right, rgba(255, 126, 179, 0.8), rgba(255, 91, 153, 0.8));
  color: white;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(255, 117, 140, 0.3);
  transition: all 0.3s ease;
}

.style-dropdown-selected:hover {
  background: linear-gradient(to right, rgba(255, 126, 179, 0.9), rgba(255, 91, 153, 0.9));
  transform: translateY(-2px);
}

.style-dropdown-selected:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.style-dropdown-open .style-dropdown-selected:after {
  transform: rotate(-135deg);
  margin-top: 5px;
}

.style-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(255, 117, 140, 0.2);
  overflow: hidden;
  z-index: 100;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.style-dropdown-open .style-dropdown-menu {
  max-height: 300px;
  opacity: 1;
  pointer-events: all;
}

.style-dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.style-dropdown-item:hover {
  background-color: #fff0f5;
  color: #ff5b99;
}

.style-dropdown-item.active {
  background-color: #ffebf1;
  color: #ff5b99;
  font-weight: 500;
} 